<?php
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/


// 测试页面
if(config('app.debug')){
    Route::get('/_test/{action}','Index\\Test@ActionInit');
    Route::post('/_test/{action}','Index\\Test@ActionInit');
}

// 财务系统
Route::get('/finance/account','Finance\\account@Action');
Route::get('/finance/plan','Finance\\plan@Action');
Route::get('/finance/affair','Finance\\affair@Action');

// web 式接口调用
Route::post('/bin/pigeons', 'Api\\Pigeons@RunPostRequest');
Route::get('/bin/pigeons', 'Api\\Pigeons@RunGetRequest');
Route::get('/bin/get_token', 'Api\\Pigeons@GetUserToken');
Route::get('/bin/get_pid', 'Api\\Pigeons@GetSysPid');
Route::get('/bin/surong', 'Api\\Pigeons@SurongGoto');

Route::get('/login/token2Save', 'Api\\Login@TokenToSession');
Route::get('/login/quit', 'Api\\Login@userQuit');
Route::post('/login/{action}', 'Api\\Login@InnerRouter');
//Route::get('/login/{action}', 'Api\\Login@InnerRouter');      // 用于测试

// 首页
Route::post('/bin/login', 'Index\\Bin@UserLogin');
Route::get('/bin','Index\\Bin@Action'); // 登录验证



Route::get('/error','Index\\Error@Action'); // 错误信息页面
Route::get('/mylog','Index\\Mylog@Action'); // 错误信息页面


Route::get('/','Index\\Home@Action'); // 无登录
Route::get('/{user}','Index\\Home@Action'); // 登录状态




